package com.ymtms.settlement.dao;

import com.ymtms.settlement.pojo.CollectingMoneyBalance;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectingMoneyBalanceMapper {

    /**
     * @description: 多条件查询
     * @param collectingMoneyBalance 实体类包含条件
     * @param startTime 时间范围查询条件（开始时间）
     * @param endTime 时间范围查询条件（结束时间）
     * @return: 返回实体类集合（由PageHelper完成分页）
     * @author: 邱斌雨
     * @date: 2019/10/25
     */
    List<CollectingMoneyBalance> selectByCondition(
            @Param("collecting")CollectingMoneyBalance collectingMoneyBalance,
            @Param("startTime")String startTime, @Param("endTime")String endTime);

    /**
     * @description: 软删除
     * @param cmsid 表主键
     * @return: int
     * @author: 邱斌雨
     * @date: 2019/10/25
     */
    int deleteByCmsid(Integer cmsid);

    /**
     * @description: 批量软删除
     * @param keys 表主键数组
     * @return: int
     * @author: 邱斌雨
     * @date: 2019/10/25
     */
    int batchDeleteByCmsid(Integer[] keys);

    int insertFinally(@Param("collecting")CollectingMoneyBalance collectingMoneyBalance);



    int deleteByPrimaryKey(Integer cmsid);

    int insert(CollectingMoneyBalance record);

    int insertSelective(CollectingMoneyBalance record);

    CollectingMoneyBalance selectByPrimaryKey(Integer cmsid);

    int updateByPrimaryKeySelective(CollectingMoneyBalance record);

    int updateByPrimaryKey(CollectingMoneyBalance record);



}